module.exports = (err, ctx) => {
    let status  = 200
    switch (err.code) {
        case '10001':
            status = 200
        break
        case '10002':
            status = 200
        break
        default:
            status = 200
    }
    ctx.status = status
    ctx.body = err
}